@extends('auth.assets.master')

@section('page-title', '登陆页面')

@section('page-content')
    <form class="form-horizontal auth-form" action="{{ url('/backend/auth/login') }}" method="post">
        <h3 class="form-title">Login to your account</h3>
        <div class="alert alert-error hide">
            <button class="close" data-dismiss="alert"></button>
            <span>Enter any username and password.</span>
        </div>
        <div class="form-group">
            <label for="name" class="control-label sr-only">Username</label>
            <div class="control-input">
                <span class="glyphicon glyphicon-user"></span>
                <input type="text" class="form-control form-input input-icon" name="name" id="name" placeholder="Username" value="{{ old('name') }}"/>
            </div>
        </div>
        <div class="form-group">
            <label for="password" class="control-label sr-only">Password</label>
            <div class="control-input">
                <span class="glyphicon glyphicon-lock"></span>
                <input type="password" class="form-control form-input input-icon" name="password" id="password" placeholder="Password"/>
            </div>
        </div>
        {{ csrf_field() }}
        <div class="form-actions">
            <label class="checkbox">
                <div class="checker">
                            <span>
                                <input type="checkbox" name="remember" value="1">
                            </span>
                </div>
                Remember me
            </label>
            <button type="submit" class="btn green pull-right">
                Login <span class="glyphicon glyphicon-log-in"></span>
            </button>
        </div>
        <div class="forget-password">
            <h4>Forgot your password ?</h4>
            <p>
                no worries, click <a href="{{ url('/backend/password/email') }}" class="" id="forget-password">here</a>
                to reset your password.
            </p>
        </div>
        <div class="create-account">
            <p>
                Don't have an account yet ?&nbsp;
                <a href="{{ url('/backend/auth/register') }}" id="register-btn" class="">Create an account</a>
            </p>
        </div>
    </form>
@endsection
